<%@ page import="com.ecable.daoImpl.*"%>
<%@page import="java.util.Vector"%>
<%@page import="java.util.Iterator"%>
<%@ page errorPage="UserExceptionHandler.jsp"%>
<%@page import="com.ecable.bean.Connection"%>
<%@page import="com.ecable.bean.Profile"%>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
	<head>

		<style type="text/css">
.Title {
	font-family: Verdana;
	font-weight: bold;
	font-size: 8pt
}

.Title1 {
	font-family: Verdana;
	font-weight: bold;
	font-size: 8pt
}
</style>

		<script language="JavaScript" src="scripts/gen_validatorv31.js"
			type="text/javascript"></script>
		<script language="JavaScript" type="text/javascript"
			src="scripts/ts_picker.js"></script>
		<script language="JavaScript1.1" src="scripts/pass.js">


</script>
		<script type="text/javascript" src="scripts/image.js"> </script>
		<script type="text/javascript" src="scripts/general.js"> </script>
		<script type="text/javascript" src="scripts/adi.js"> </scri pt>
		<script type="text/javascript" src="scripts/form_validation.js"> </script>

		<script language="JavaScript" src="images/javascripts.js"></script>
		<script language="JavaScript" src="images/pop-closeup.js"></script>
	</head>
	<body>
		<jsp:include page="Header.jsp"></jsp:include>
		<%
			String status = (String) request.getAttribute("status");
			//Profile aprofile = new ProfileDAO().getProfile(path, user);
		%>
		<center>
			<b>Customer Connection Details</b>
			<table border=1>
				<tr>
					<th>
						Name
					</th>
					<th>
						ConnectionDetails
					</th>
					<th>
						AdressDetails
					</th>
					<th>
						Connection
						<br>
						Status
					</th>
				</tr>
				<%
					Vector c = (Vector) request.getAttribute("vpf");
					Iterator it = c.listIterator();
					while (it.hasNext()) {
						Profile vpf = (Profile) it.next();
				%>
				<tr>
					<td>
						<%=vpf.getFirstname()%>
					</td>
					<td>
						<b>ConnectionPlan :</b><%=vpf.getConnplan()%><br>
						<b>ConnectionDate :</b><%=vpf.getConndate()%><br>
					</td>
					<td>
						<b>Hno :</b><%=vpf.getHno()%><br>
						<b>Street :</b><%=vpf.getStreet()%><br>
						<b>City :</b><%=vpf.getCity()%><br>
						<b>phno :</b><%=vpf.getPhone()%>
					</td>

					<td>
						<%if(session.getAttribute("role").equals("Operator")) {%>
						<a href="./UpdateCustomerConnStatus?connid=<%=vpf.getConnid()%>"><%=vpf.getConnstatus()%></a>
						<%} else {%><%=vpf.getConnstatus()%>
						<%} %>
					
					<td>
					</td>
				</tr>
				<%
					}
				%>
			</table>
		</center>
		<jsp:include page="Footer.jsp"></jsp:include>
	</body>
</html>